package com.offices.subscribe.dto.message;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import lombok.Data;
import lombok.ToString;

import java.util.Map;

/**
 * TextMessage class
 *
 * @author keriezhang
 * @date 2016/10/31
 */
@Data
@ToString(callSuper = true)
public class TextMessage extends BaseMessage {

    @JacksonXmlProperty(localName = "Content")
    private String content;

    public TextMessage(Map<String, String> request, String content) {
       super(request);
       this.setMsgType("text");
       this.content = content;
    }
}
